how to translate applications with REST API